package com.example.indenture.order.controller;

import com.example.indenture.order.entity.Orders;
import com.example.indenture.order.service.OrdersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gezha
 */
@RestController
@RequestMapping("api/")

public class OrderController {
    @Autowired
    private OrdersService ordersService;


    //添加订单
    @RequestMapping("/orders/insert")
    public int insertOrders(@RequestBody Orders orders){
        return ordersService.insertOrder(orders);
    }
    //分页显示订单
}
